﻿#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

#endregion

namespace Weazel.Gezel.Simulator.Reference
{
  public class CombinatorialLoopException : ApplicationException 
  {

    private readonly Symid signalId;
    public Symid SignalId
    {
      get
      {
        return signalId;
      }
    }

    private List<AbstractSignal> signals;

    public List<AbstractSignal> Signals
    {
      get { return signals; }
      set { signals = value; }
    }


    public CombinatorialLoopException(Symid signalId, string signalName) : base(string.Format("signal '{0}' is in a combinatorial loop:", signalName))
    {
      this.signalId = signalId;
    }
  }
}
